﻿using System.ServiceModel;

namespace WP7AccelerometerService
{
    /// <summary>
    /// Interface of WCF service consumed by windows phone client in order to report accelerometer data
    /// </summary>
    [ServiceContract]
    interface IWP7AccelerometerService
    {
        /// <summary>
        /// Reports current accelerometer data
        /// </summary>
        /// <param name="x">X axis component of acceleration, in G units</param>
        /// <param name="y">Y axis component of acceleration, in G units</param>
        /// <param name="z">Z axis component of acceleration, in G units</param>
        [OperationContract]
        void ReportAccelerometerData(float x, float y, float z);
    }
}
